Fix raster funcs docs

Added some docstrings and doctests to raster_funcs.py. There's still lots more documenting to do, but these should be good.