added analysis attribute to collection
added distance-based em algorithm
added some useful scripts