Refactors MemController

Adds improved code comments to MemController, MemSharedArea