added brief license to readme
added explanatory comments to lab 5 b-functionality