Adding closed tickets to docs
Simplify suspend code
Fixing compilation problems caused by recent addition of the schedule_thread hook