added bit encoding explanation