Fixed bug in read() and peek() for fifo.
Added support for other compressed header formats
Added more docstrings
Some docstrings are a bit odd at the moment and need cleaning up.