Fixed 2 typos and an unused local. Thx. Andre Simon