Added documentation and a commented out simple memory use logger

This is a non-functional change.