improved Javadoc comments and added licence info