Changed __get_primary_pool_name to set var
Changed __get_primary_pool_name to set var

Changed __get_primary_pool_name to set global variable rather than rely
on returned output. This should be done on all the functions.

chyves/chyves