Implemented all the functions in the Char module.
Added Thread.preempt (dummy) and Thread.state.