Support compressed and uncompressed files, add correct copyrights