Fix for wrong return types in documentation.

Several methods were declaring erroneous / incomplete return types.
This PR fixes them.