Updated samples.
Added function "writexst" by Toni Giorgino.