cleaned up and refactored code. started work on getting csv file loads