Implemented the memory interface. Added some convenience stuff to the makefile.