Implemented grant/revoke functions
Fixed return codes to match docs
Documented permission functions
Update version information