Implemented Save file dialog. Fixed file opening/saving procedures.