Refactored code to use init and start methods instead of connect.

Added docs for how-to instructions.