Cleaned up curves.cpp a tiny bit more.