Added computation w_analytic of weights
Fixed bug in free of w_anal
Flag options added

We added flag options