Use templates for cleaner and maintainable documentation generation

Also change the generator from "documentation" to "doc"; this makes it easier to
use on the command line.
Bump version