Added generation of a list of commands and their corresponding key
bindings, for documentation purposes.
Got rid of indenting hell