removed extraneous printfs and fixed call to pthread_create so no compiler warning is thrown.