not sure what this is but cleaned imports
added docstrings, simple rainrate method (untested)