Add commentary to Lexer and add method for writing to binary file