Flags and Error Weight Parities: A Development of Fault-tolerant Quantum Computation with Few Ancillas