Added LICENSE file
removed new byte[], use byteArrayOut/InputStream