Tidy up namespaces.
Add some basic controls.
Add sprintf() stuff to the logger.