Fix issues in provider

There was an issue in the `annotate` method and in `invoke`.

PS: better use two spaces for indentation.
Merge pull request #1 from mgechev/patch-1

Fix issues in provider