Files for the history and named equations/variables are now in global variables that will be changed and refactored later.  They are also now stored in the user's home directory instead of whatever directory the app was run from. Also refactored some other things that should be globally accessible.