Fixed wrong return types in documentation.
Merge pull request #578 from BenMorel/docfix

Fix for wrong return types in documentation.