added serialization

initial serialization functionality added as well as reorgainzing m_get
to handle available inventory space