Fixed some errors with double memory free (from 'menuitems' and from 'commands'). Added the four main commands for the editor of sprites (close_editor, make_unique_editor, split_editor).