Fixed trouble with config example and added debug statements.