Add a default cfg file, skip comment lines, fix a couple small bugs.