update fortran code generation
clean the mapping files a little bit, more to do tmr.