Added Makefile. Fixed warnings.