finished the main interface for fortran routines in ma57d.f