autodetect file format & compression. fixes #2
Looks at file headers and contents, rather than file extension.