API: added batch process to add text annotation

plus some restructuring of output

p2: added batch process for add option and relation annotation
also reusing of class function processBatch by all annotation

Change-Id: Iac98b20cef0f69af7f40eef172bb5634403c6073
Merge "API: added batch process to add text annotation"