Fixed object creation.
Replaced deprecated function calls.
Improved error handling in generic interface.
Improved incident state calculation to not turn already incident CIs into warning state.
Fixed double variable declaration.