Added more comments regarding state/program/module object management.