Learning code. Fixing a few compilation warnings.

Added makefile and run