Add basic makefile for easy compiling
Clean up the source code based on -Wall compile option