initialized nice
moved functionality to threads, triggered on timer ticks
implemented priority list poppin and pushin
moved bsd vars from thread.h to thread.c