Implemented module save and save as functionality.