changed Thread.interrupted() to Thread.currentThread().interrupt(). Fixed comment