[Book] consistent and complete config examples

Make configuration examples in the book consistent throughout the
different configuration formats. Also fixing several syntax issues.