Added makefile for building. Changed printfs to OutputText as initial support for logging.