Added function to query for the existence of a species in the tree. Also did some cleaning.