Updated and reoganized LocalDataManager and other files.

Saving and loading still does not work; there is a problem when appending to the file and reading it back.