Fixed use of uninitialized variables found in gcc build.
Added C2 continuity to curve creation without specifying C2 value at joint.