Added readMessage and removeMessage methods for MemoryManager
Possibly functional memory manager.