CHanged the Curve class public interface so it takes only keyframe indexes for setters. This makes the calls much more robusts and eliminates a few bugs.