Updated presentation and code slightly.