added comments
remove print debugging