fix incorrect templateURL and add generator docs