re-fixed wafom bug, added document for randomPoints and BasisPoints