Add javadoc to MemoryManager (and delete unnecessary interface).