enable some compiler warnings per default
reduced compiler warnings
removed more cppcheck warnings
shrinked variable scopes
Merge pull request #13 from holgerfriedrich/master

warnings and variable scope