Wrapped code into an immediate function to turn it into a module.
TD-17 #comment Reworked collection of configuration objects and added documentation.