fix setting locale when none is specified in config
improve documentation