Fixed noob error by Roberto and Fixed disconnect()
Added different methods for testing