fix bug that passes endian to reading bytes
fix Cakefile
fix char type bug