fix various maven errors, replace beta random variable implementation