Update Thread.java

Can now turn itself on or off and has the beginnings of support for running commands when it does that. Has issues with the override feature writing out invalid messages