added documentation and code to respond to texts while app is running