Wrote a bunch of documentation.