added comments, more setup and a cleaning routine, need to process data