Minor cleanup.

Removed comments, and compressed structs.
Added API comments.