Added bgzip support.

issue: #14 

this pull request requires #21 to be merged.