update the examples
fix the bug in x-wrapping (when the first time point is not close to 0)