added some functionality to the end of thread_create. implemented the requirements for thread_set_priority