Update script to detect user's permissions
Update documentation