added comments, removed most test console output