in reply to printing data structure
You may also find How can I visualize my complex data structure? useful.
HTH,