Analysis routines and tools for AHF and Gadget