stephane corrected some equations, updated the structure of the nb, and completed the calculations