improved object-orientation of BEDFile objects.