allocated arrays in fortran to permit c/fortran interoperability; fixed memory leak issues