Refactoring

Changed the return methods with a result boolean for cleaner
implementation.
Added a message when a successful connection has been established.