Helper Functions

Added in abstract save file method that takes any data and makes a file
out of it. Added convert object to data function to use the abstract
save file stuff.