Rewrote some documentation