removed minor bugs. Disconnect message added.