Clean up
Changed Num_unique_basis_pairs and Num_equations from global to local variables
Changed Dependent and BasisNames from global to local variables, clean up
Clean up