Wrote a few sections of the documentation file.

- C++ code section, explanations of SWIG code section
- got rid of unused function in DiscreteStats