Added type detector and meldingen array

It checks for strings that can indicate the type of warning, and set's
the type to that.