Code updates and new merge functionality

Signed-off-by: Malte Sussdorff <malte.sussdorff@cognovis.com>