Add Makefile
Fix warnings