further integration of Read class
use bdflags in x_readcounts
more usage of bdflags in x_readcounts