updated javadoc for arithmetic and logical criterias.