Sorted out errors in the equations