refactor -- move functions to different files
refactor, more -- move csv parsing to another file