Adds gate unit generator and tests.
Editor-initiated whitespace changes. eek.