Fix code. Add docu for interfaces