Bug fixed with snp function, implemented stringstream in all output functions