added licence plus comments