updated docs and cleaned up script.js

 * Filled out the docs with a description of all the proper items.
 * Removed some defunct logic from the main script