adding asynchronous functionality
Merge pull request #7 from omnipotentuser/foundation

adding asynchronous functionality