cleaned up the bezier.h to be more generic curves