Refactored code to not rely on csv library as much. Next step is to input files without it