- added methods with ByteArrayInputStream (ByteBuffer is still there)
- made the example work