removed by type id prediccate

was not called in external modules
try adding swi doc structured comments

confused about their syntax
groups partially working

only missing: group_end matching