Removed incorrect thread clone code and fixed some typos