Updted the docs and improved permission scheme.