v1.0

This is the branch for v1.0.

The whole codebase has been refactored, and tests have been added.