Added new Exception class
Added signatures and specifications for next() and Lexer constructor.