-Wall -pedantic CFLAGS added
Compiler warnings and errors eliminated