Updated some things in file_handler and triplet_handler to allow passing lists better