cleaned up debug output, modified regex to detect offenders in parethesis