Added callback into flashWithProgrammer. Corrected callback argument into getFlashResult