Added  javadoc and license