Fixed save data, cleaaned up some code and added a fuction getData function.

I actually understood what would need to be done… not how exactly to do
it though.