Merge branch 'master' into yummin
Modify codes in src/thread

1. Add comments and DESIGNDOC
2. Rename member in thread struct
3. Reformat code
Merge branch 'yummin'