Save environment file functionality implemented (Bug: CodeMirror display bug exists)