added the sam format reader