Comment and cleanup thing editor and main entry module.
Fix bugs related to recent cleanups.
Comment and cleanup the states editor window.