added comments, changed print statement