clean up and create build for R package
tidy script structure; convert vote to numeric
fix problem with filenames variable being used different ways and causing problems in tidy scripts