Improved the API and added documentation.
Bump version to 0.1.1