cleans up api, makes cache inherit from MdogoArray
tweaks comments