added some minor commenting