fixed some issues relating to default argument values
fixed curve intersection to provide correct barycentric coordinates