Added some fastq support and detectType function