Added domain APIs, fixed a few old APIs.

Also changed variable style to match DO's API docs, for easier comparison.
Add tests for additions to class.
Undid changes to variable names.
Almost forgot these...
Merge pull request #4 from Smenus/master

Added domain APIs, fixed some older ones.