Added Makefile
Fixed linux compile and improved sample