Finished config parsing

Haven't tested it, but that comes later.