Converted formats from C-sytle to FORTRAN-style codes