Added open from file, and save to file methods.