Fixed Serialization

Added save button functionality
fixed serialization
took out unneccessary code
Converted serialization to a library