Massive API documentation update +misc tidbits.