- deleted unused code blocks
- updated based on PR review
- added `readConfig` to lib/util.js to read configuration (either JSON or YAML format) . probably the rs.config add-on can be refactored to use this.