adding clear output button. adding ability to grow/shrink the editor

I think the changes are pretty straight forward and I tried to make them in a way that was consistent with the existing codebase. However I did notice emacs decided to fix some trailing white space etc. without my direct consent - hopefully that is not an issue.