Created proper test for lexer.
Cleaned up test output.
Added X-Ranges handler.
Added check for version after range.
Hooked XRange handler into lexer.
Shortened main state function by using peek().
Added example.