added xRiffle, fixed bug in x_
updated example
updated test