Adding notes on memory management