Correct one error, and add the influence of theta when considering the energy.