core: add bit writer module