rename bugs.log as problem_report.log
add the weight calculation of W_0