Autogenerate unit files

It is error-prone and tedious to create new unit files. This CL adds code
to auto-generate the unit files, which will reduce effort and error.

This CL dose not add new unit files, but does correct the existing files. New units will come next.