Added OpenAccessory support and made minor bugfixes.