Added file saving and reading methods

Added code to save to file and read to file