added thread example, update readme file