clean up Fortran back end
this time cleaning up is mainly about coding style and readability.
btw, following the 100 characters per line limit rule.
TODO need to clean up the logical part of the back end.