clean up A2300Update; add erasing of flash before setting firmware or FPGA direct; add updating of firmware after writing it; fix all clang warnings