Adds more comments and explanatory print statements.