Additional fixes for mac compatibility

use ‘export_fig’ rather than ‘saveas’ to export figures on macs
Updated arousal threshold software

Major restructuring of arousal threshold analysis