added code comments