Minor spelling correction, code documenting

* Correcting __pseduo__RandomFunction to `pseudoRandomFunction`
* Documenting index.js using JSDoc format