Remove unused code
More docs on interfacing with JavaScript
More improvements to docs