Run rubocop before tests
Use local docparser in example
Use __dir__
Style fixes