tidyup so it can be templated
tidyup so it can be templated

FFIG/ffig,FFIG/ffig,FFIG/ffig,jbcoe/C_API_generation,jbcoe/C_API_generation,jbcoe/C_API_generation,FFIG/ffig,jbcoe/C_API_generation,FFIG/ffig,FFIG/ffig,FFIG/ffig,FFIG/ffig