Created Documentation

Created documentation and corrected a couple of comment typos in the js.