add drain function
add gitignore
Merge pull request #3 from cjoelrun/drain_ignore

Drain ignore