factoring to prep for multiple documents, making tab key binding handle collapse, made M-C keybinding for execute, taking out dead event handling code, fixing AST buttons a bit (still needs work)