removed printouts and added comments