created a dataManager to pull out all of the methods to save userdata
cleaned up some of the unused fields in the mainactivity after refactoring