Improved error reporting
Fixed code analysis warnings