Fixed a bug in the printConfig, removed some debugging