fix a couple of my typos. there will be more.
added values of d coefficient.
fixed merge problems by hand.