Buttons working now fixing the scan.  Changing to scan first then write later.  Need to scan to an array, list or collection or some area.
Working Version with GUI
Working Version with GUI