Corrected the output format

Forgot to add a newline at the end of each entry to the output; fixed with this commit