updated 2D examples
new functions added
new method "Append" to add segments