fixed a form1 gui bug where it throws and exception gui side because of a null pointer.  Added the code to make the save functions actually save.