added jdoc and licence