added implicit none to C function interfaces