refractored rxtx flash methods.
version 0.0.4