some debugging change.
program also now keeps track of 2 and 3 char before the '
this keeps track of cases like \' and \\'