Added a Save to File functionality - still some bugs.