Added docs, and a few minor updates.