got rid of unnecessary lines in makevars
explicitly declared getpid to get integer kind 4
declared types before using in dimension declaration so code is standard Fortran compliant