rparser: add dot graph generation
rparser: remove addToGraph as probably not needed
rparser: fix logging and except StopIteration