removed unecessary newlines
Added stability test of the NS solver just before output file write