Refactoring, small fixes

* fixed cloning of levels