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