Added saving to file method
Added saving and reading methods