Add labels to memory analyzer.

Make nice label numbering.
Fix wrong label referring in code.
Add indentation after labels.