Cleanup

Usual assortment of hex-bashing. Plus a typo fix in the translation typedef: AMDConnectionRef -> AMConnectionRef