Support binary file

TODO:
  * coloring
  * improve type check