fixed up some debug stuff and added collections support
Merge pull request #133 from thequbit/master

fixed up some debug stuff and added collections support