Cleanup print_abinary
Backport radsniff and additional required library code from master