added new output object
modified the code so the degree of certainty is published together with the object id