Fixed save() such that it will be atomic. If the program crashes while writing, it is guaranteed to have either a complete copy of the old or the new data.
Fixed a bug with writing messages out to the server.
Updated