add linting to project and fix lint errors