now passFileNames uses raster in case of writing.
raster:::writeRaster supports any gdal formats (passFileNames and useRasterPackage)
and some other changes