Add memory usage document
Minor refactoring for mem usage doc
Merge branch 'issue-274-memory-usage'
Closes #274