Added debug messages

added console logging for issue #69