switch initializtion to promise
Merge pull request #18 from chrisabrams/master

Switch initializtion to promise