Ensure newline at end of output

We were stripping the newlines off the end of the output.  
Merge pull request #5 from bitwiseman/patch-1

Ensure newline at end of output