completed checkAlive class/thread

Whitespace changed