Acceptance tests

Fixes #315.
Add a module docstring.