some fixes
more api
more api
cleanup
more fortran api