makefile use c99
reworked the thread implementation
edited the segmentation part