Initialized some unintialized variables ; added -Wall compiler flag to CMakeLists.txt