added javadoc & license
fixed license