Non-code cleanup
Ignore vim swap files
Moved keyboard interrupt loops to functions and deindented __main__ in record
Added intermediate data files to gitignore
Added MIT License
Removed trailing whitespace