Refactor

Fixes #9, #11 & #12 

Implements cleaner log Lexer.