Fixed Javadoc and argument checks.