Fixed nodata option and some other fixes.