weightedprob implemented, little Bug fixed and test extended