change IQ.Type to enum

fix toString

made method static