Fixed a missing default and failing build on invalid parameter in config.

Also updated the doc.