Programming Assigment 2: documentation of code created