Threads properly exit after given time period
Cleaned up csv code and added custom output dir