Added comments for step-by-step output
added some print statements
added some print statements