Add Makefile and basic bare program

Some validation as to parameters is performed.