Bug fix: config file now read by line.

Also redirected some debug output to /dev/null.