Added autosave on window close, argparse arguments for saving and support for old save files

Added autosave on window close, argparse arguments for saving and
support for old save files. Autosave is on by default, but you can
change it from command line arguments. It is also possible to change
save file name and load another file. Loading older saves is also
possible without any errors (only with loading default parameters where
needed).