Script for splitting and error correction of reads