first commit of script to insert register doc into C code