add split_string to split a string into array
refactor function to improve clarity
add generic genome searching function
update API to use generic genome search function