added javadoc
adde license