fixed many bugs
implemented kl divergence similarity
implemented time frame constraint