Continued updates

Functional version of arousal threshold software