Updated makefile and main routines to work with gfortran on Titan