Added variable declarations

These changes in variable declarations were necessary for me to successfully compile with gfortran.