small changes on the decomposition.c and .h files