Wrote defaults to config, fix a few things.