Added example to repository and optimized the file structure

I have been tested the linked example ```index.php``` and it didn't work. So I have been optimized this example and added it to the repository. I also optimized the file structure for the example and condensed the barcode files to the ```src``` folder.