Add swipe
Fix length check
Add swipe example