splitting Ray contigs and cleaning up input files