better error handling/documentation for bam-rewrap