linting and settings.
add onNotFound method.
documentation enhancements.