changed the way getting time in function_instrument(), added check if thread_t=NULL in add_time_start(), add_time_stop(), increased malloc length from +11 to +15 for trace_file_name