Removed not needed error handling from promise.
Implemented file content updates from GUI.