add linter config
clean up some dead code and fix some references from linting