removed some duplicate code from a merge...

... worked further on the binary thing.
need to work out how to do the bitstring math