Add licensing info and prepare Makefile for main program