changed output filename to output path and name
fixed bug getSeqType()