added a test case to generate a procedural curve file
fixed a small bug in the code