Ran code analysis, fixed compiler warnings