added select()
Merge pull request #1 from entrendipity/select

added select()