Added comments and debug settings.
Added production-config-sample.php
Updated comments.
Added better inline docs.