Algorithm upgraded to 1.9

Credit Algorithm upgraded to v.1.9, including terminal-based setup (single/double swipe)