fixed typos and added another line or two.