initial commit, plus chapter 1 gates except and16 and or16