Fix typos, add Thread class