added some additional code comments