Added debug messages

added console logging.
Merge pull request #68 from Js41637/patch-2

Added debug messages