Fix raster funcs docs

Pretty much finished with documentation and unit tests for functions in `raster_funcs.py`.