SAM file bugs

I added code to write 'N' in the SAM file instead of '-' since it is according to SAM specs. And folder path should be with file separator in the end just for convenience.