Save, SaveAs and Load implementation

also changed the "close" method.