Document and clean up public API.

Methods that mutate nodes or attributes are no longer visible after