Added a docstring
Merge pull request #80 from gem/change-risk

Building the documentation of risklib and some refactoring
Merged from master