added checks
added debug info
Merge branch 'master' of github:boarpig/dyfi.py