add activation flag
add jsdoc
fix swipe direction