Added getopt.h and signal.h to terminoteFunctions.c