Removing outdated variables.
Moved bam header reading into it's own object called ReadBamHeader and added proper error reporting.
Added pieces parameter.
Fix documentation typo.