added some more code comments