Fixing some errors Adding definition of variables lonname, latname for type length agreement in the subroutines