Warnings

Greets! 
Fixed some warnings that arise under normal building (just some parenthesis in two expressions).  
Also fixed some vars initialisation so static analysis doesn't throw any warnings. I believe this is important as library gets integrated in projects where warnings are undesirable.