curves work
realized that there were functions in matrix.c for some of the things that were done in add_curve of draw.c