from the old forums.

http://blog.petrockblock.com/forums/topic/howto-use-datfiles-to-eliminate-clones-etc-from-mamefbaneogeo/

there are also many guides throughout the mame community. at some point someone may feel ambitious enough to make a guide on the wiki