Made more general

Added slicing instead of bool indexing
main tped function is passed a list of samples, not a path to a tped file.