lexer bug fixes, extra code handling, cleaned up parsers, handle extra end brackets