Refactoring and javaDoc for MemoryCleaner