File saving, file backup, and syntax checks restored,

Also new private method to display and log errors.
All public methods go below private methods