made recursive piece and did some testing

The recurisve program should go through a structure and find entities
and values. It is almost there.