Fixing promise resolution only after stream has been completely written
Fixing alignment
Fixing alignment
Fixing alignment
Merge pull request #6 from pvenkatakrishnan/master

Fixing the promise resolution only after the writestream has finished.