v.4

added the ability to save and open variables and functions
reorganized code