That's not a bad idea, and a quick way to do this would be to add pseudo-counts to each fragment. That would make the difference of 1 or 2 reads not nearly as significant.
minor changes
added some basic error checking
Fixed a problem when there are no reads mapping...
Modified the messages printed when the user inv...
minor typo correction
fixed some bugs with saving output in BED format
added to help with the documentation