fortran code and all relevant src updated

compiles fine but untested