now detects headphones, changes volume appropriately. Only tested on my laptop.