fixed documentation
removed duplication in saving/loading to/from file