moved Makefile to root dir.  fixed compiler warnings