Added new easy-to-use writer class, update duplicate counter to take into account paired end reads better