Barcode validator

Hi!
I just wrote a tiny validator for barcodes (EAN 13 only for now). Feel free to merge it or give me some guidelines for further development ;)
Pierre-Baptiste.
Can we test setting the wrong option (like "ean1234") to see how the code behaves? Exception vs add an error to the list of errors.