replaced cmake with Makefile
fixed minor warnings with unused variables
auto format code with astyle