Fix build warnings and errors about Javadoc, added some comments to the
date constraints.