lex.go: Improved lineNumber calculation
Add debug output to functions