Code cleanup and bugfix for Barcode modules

Just a mic amount of code cleanup and fixed a typo that was not properly checking the input filename. Would still like to see the swallowing of exceptions removed throughout the product.