removed old sweep scripts
sweeped reads properly puts output files in source dir
fixed key error in error checking code
was not flushing buffer at end of run! oops...