added async functionality
Merge pull request #36 from thebrianzeng/async

added async functionality