add linter support (#18)
Refactor code. Close #18