added a couple of comments and debug stmts