fix a bit of linting and add lintrc