Added linter, fixed some lint errors