Further reduce main and add a makeVHDL function.