Updated documentation

Updated documentation to reflect the correct usage for the availablePermissions method.