updates on comments and writes output raster