replaced manual loop for copying byte array with System.arraycopy
Merge remote-tracking branch 'origin/master'