Refactoring

now all memory related settings moved to Memory management