added functions.c
removed main.go