add main.m and Makefile for command line building/testing