added licence + javadoc