Fix some bugs; add BioCReader and some test code