added Connector,changed Header class,fixed bit-twiddling