added comments and defgenerics to rete