added most of the bitwise operatoins and some of the timing stuff