implemented Element extension method GetCurve
fixed erroneous format string and added calls to Element.GetCurve extension method