bugfix flash user, update flash and read code, update commands, bugfix flash user

Simplify the algorithm to write flash, reduce code duplication in flash and read chips, fix flash user page, streamline command list, add progress to flash and read chips.