minor bug fix and updates

- fixed the bug that made the script skip the first contig in the annotation file.
- made it compatible with wrapper and modification scripts which will be uploaded shortly.