added fast quality algorithm
added support for gzipped files