assignment update

added more comments that are explanatory
assignment updated

Did a bit of formatting