Added listening function to listen to messges.
Merge pull request #2 from ajorians/AddListening

Added listening function to listen to messges.