Make use of App config.
Some minor updates and PHPDoc comments.