Fixed saving of data to disk.
Updated documentation.