Added descriptions and permissions.
Minor style changes in code.js.