added makefile and removed compiler warnings
added makefile