add docu and tests