Barcode scanner implemented *hopefully* also quick fixes to prevent warnings

warnings