Made main function to test whether snp valid

Uses all the minifunctions made previously. To make sure that lines
input are valid.