Fix some warning bugs
Add makefile