Fixed api and updated docs. Bumped version.