Documented a lot of complex methods I had neglected to comment before.