This supports gzip and bzip2 by magic number determination. Trailing whitespace differences in documentation due to opinionated editor.