Added API and example.
Initial commit.