Add revoke function
Merge pull request #1 from Ldes/master

Add revoke function.