Made optimizations and fixes to Barcode.php
It was generating the wrong checksum for ean8 barcodes, which is fixed now.