add some more material to Basis class
fix error coeffs vs coeffs.items()
fix if vs elif
add material for getting basis index if a varstraint is basic