Updated some docs.
Added proper defgroup.
Switched to using the "-- means private" idiom.