thread.c | Cleaned and Commented