enable some compiler warnings per default
reduced compiler warnings
removed more cppcheck warnings
shrinked variable scopes