There are no docs, beyond what's in the function names and docstrings. This has some fairly complex stuff in it now, we should fix that.