Added save data for undoing/redoing #207

Also removed junk code.