Fix couple of small problems.
Reported by Mauricio Cornejo
Function to explore memory.profile output
More thinking about performancE