Generate chapters instead of sections for commands

Since these sections are not needed for the appendices anymore, we
can use chapters for the command reference. This patch changes
the tool to write chapters.

Change-Id: Ibbb2334120bc40b1c147432c9a089186c484a4fa