Added Javadoc and license header.