cleanup
add ByteData for php
add ByteData for cpp
initial support for Java