Corrected C code to now output data returned by Det calculation eneity