added javadoc to constructor