updated config reading and docs