Finished map save implementation and most of the Map class.