cleaned up a little bit, fixed a couple of typos and changed all possible division to multiplication.