Add domain documentation

Closes #17.