More formatting and docs. Thanks for @haoyuan !