Fix NB warnings.
Use ParamChecks.
Update Javadoc.