add logging to module, and mapping of lexer attributes lineno and lexpos to improve error messages