Added edge-detection and barcode-reader