Completed ByteSink functionality and updated javadocs