Updates to htc.c and added the Makefile.