Make library more dev-friendly.

Fixes #1.