Added licence and Javadoc