cocopro: finished script to find feature weights;