Fixed some bugs introduced in e18eb57752095fc59725090e640073b45458b638
Removed some unused code
Added some delays between USB commands
Print when connected and disconnected from accessory