Cleaned gc a bit
Extracted methods are no private as the were supposed to be.
Removed unnecessary allocation in MemoryManager.
Command documentation