change namespace of LoopDelegate.
add convenience method for digital-read.
Merge pull request #2 from oasynnoum/device-loop-refactoring

change namespace of LoopDelegate.