Wrote up some documentation.