added method to calculate relative entropy -- need to get rid of NaNs