added writing new gesture to settings.txt and added settings path to global vars