implemented reading/writing hash tables
added sanity checks to (mread-box)