Add example to demonstrate drain()
Fix undefined duration to calls
Merge pull request #275 from programmarchy/drain-example

Add example to demonstrate drain()