added ctor
added javadoc