added copying notices and licence