simplified geotiff methods. moved tileidmatrix to grid file
fixed merge conflicts