Added code to save to local storage

Added necessary code to save input data to local storage.  Also began
messing with json and xml file.  Will definitely be changed later...