Substantial improvement in the documentation of the functions and correction of typos. Nothing has changed in the code.
Includes a vignette with application on a Neural Network.