i don;t know if this will help u, but i was having almost the same problem after my b16 swap, my car wouldn't go over 3k rpm without bogging...it was the crank sensor (located in the distributor on a b16a1)...anyway, my problem was a wiring issue at the ecu, yours may be the actualy crank sensor...worth looking into..