added memory management notes