Moved outStream creation location to avoid creating files when the
response is not 200. Also removed 'complete' event because it is not
necessary.
updated package.json and .gitignore