Various fixes to C++ source files.

- Exception throw on approxfactorial added
- public keyword used on inheiritance
Exception handling added to bindings.
Started writing documentation.