Fix Linux error, misc linting
Created by: jsta
This PR fixes the Linux specific error described in #27 (closed). More details on my journey (which included a crash course in Fortran 77) are at https://stackoverflow.com/q/45270145/3362993.
This PR also includes some miscellaneous linting that I did along the way.