fixed a bug in hexWrite that caused the method only half the buffer. Minified again.