added sam output, indexing and alignment