Updating lesson comments
Updating lesson 2 code to clean it up and add a utility error logging function