fixed config loading and doc improvements