More example doc work.

Also, modified domain so it gives better error messages.