Added error handling if no snp file is given