Added makefile. Bothered to make the code ansi compliant.