updated makefile to include smart.c
fixed errors in smart.c