reformats to comply with ruler 120. minor changes.
do not send chat msgs unless connected with minecraft.
make pep8 compliant.