Refactored file read/write out of loops. Added basic collision statistics. Unclean records aren't saved to file. Still need to parse data into files.