Cleanup.
Added a bunch of editor functionality.