Implemented mm_init() function
Refactoring a lot of code
More code refactoring...
Made more code changes
Finished code refactoring