Correct memory info
Add comments