Added class WorldEditor, some code fixes