Make it easier to test
Add custom error
Add config
Add tests
Rename test file
Add dev dependencies
add module exports on app
Rewrite for testing. Better error handling. Add support for config