Memory class

started some more of the memory class. Fixed parser constructor.