Added toByteArray / toString methods