added some code comments to exported code.