added bitoperator functions; and created basic i/o loop
final, before splitting off into bitops and stringops