add some print statements and comments explaining what the heck is going on