little fixes to lookup, added debug printing of label and variable and expression tables