Add cppcheck to Makefile
Fixes #14. Remove unsused variables, make code clear