Document parameters? For example: It seems to be assumed that `$configDir` ends with `/`.