startListening method

Creates and starts the listening thread.

 Syntax