Mandatory type annotations for public methods.

- Fixed resulting errors across the codebase.