added get_thread on thread.c and added a few things on process.c