Fixed numerous documentation issues

Added a number of `@throws` and corrected a few types.