Some refactoring of the species_pot module. Mainly changing the arguments of the functions, plus some cleaning.