Fix warning C4800 - Rather than implicit cast to bool, compare to int
Fix Xml comment warning
Fix warning C4800 - compare to int rather than implicit bool conversion