The three peak detection algorithms of emzed can be found in the feature finder module emzed.ff, see API feature finding module
To execute them in batches, the emzed.batches module is useful, see API batches module
The process of centroiding data is also described there.