Added code to toggle parser and lexer warnings.
Fixed minor misspelling.