all checks on input file performed, sequences extracted.
still working on it
final working script