Fortran support

I updated the Fortran support to a modern level. Not sure if the old version in Dynetrekk has ever worked. Also added debugging technique.