Fixed documentation for raster_funcs.py

Added numpydoc-style docstrings and doctests for all functions in `raster_funcs.py`.