v1.0.0

Full rewrite. New API.