Fixed some errors in datacollection.py need to fix a few more before it will work.