Fix for issues reported by static analyzer
Updated project settings
Merge pull request #14 from MihaiDamian/master

Static analyzer fixes