Working version with tiny tests and docs.