Reimplementaton of BioCReader; fix some bugs