Basic Saving Function Added

Added saving function and took out obsolete code regarding the update()
function and the treeview.