Abstracted the logger into its own module
Added tedious logging to parse