update CLearnRF, fix a bug and make it faster