added compute.c, changed functions.h