Included some try/except statements for error checking and some documentation. Also fixed a bug in DataCollector.