Adding some comments.
Adding comments. Introducing memlimit.