added debug logging
Merge pull request #3 from nearform/add_logging

added debug logging