Fix JavaDoc build warnings

Fixes #181 and #182.