Renamed TCB status flags and cleaned up init, create, and schedule code