pulled out a bit of editor state and added into gui
code style
checking gl calls
got rid of example code