Corrected bug in byte array declaration which is unnecesary to add one to the size of the byte array.  A miss read of the offset in the BufferedInputStream.read offset parameter.