fix javadoc warnings.
better toString
improve docs.