added newlines to thread.c and .h