adding version info changing number format in mtex files
simplifying generation code