minor revise to BytesUtils

- add copyright to BytesUtils
- renamed a function