Added makefile
Fixed warning about unhandled enumeration values in switch
Variables were redefined instead of used
Fixed name in makefile
Merge pull request #1 from texus/master

Added makefile + fixed warnings