Updated saving and loading app state into a file. Tested and got it working as a proof of concept