cleanup and documentation

Signed-off-by: Andreas Geibert <ageibert@cemico.de>