Added #ifdif guards
Set the outputs line to the identity.  TODO fix it
Added an extend method for xor_funcs, and fixed bits stuff in construct_circuit
fix_basis was fixed to use lambdas and vectors.

TODO: add tests
Added simple demo file