Lint fixes

- updated "npm run lint" command to process all files under `lib/` directory
- lint fixes