added/updated code comments