Adding policies and fixes a few bugs.
Adding user policies
Documentation update and removing of javascript generation.