fix bug (check type whether is byte) and update README