Refactored reads input and fragments creation with pysam usage