added javadoc to second constructor