Added some extra features includin pastetoggle and undo file. Put some defaults in just in case in foreign environs.