more cleanup, started work on leveleditor.py