Memory

Added memory cells. Some errors fixed.