fixed small bug in chooser creating pickle
fixed a bug in entropy with costs