fix comment typos and attribute to Assignment 2 sample code