Add comments and update tests
Update doc for BarcodeValidator