cleaned up code a bit and added check to save modified files on tab close
Merge branch 'master' of https://github.com/AndrewRose/Grease