A message is transmitted over a channel where each bit is inverted independently with probability $1-p \in ]0,1[$. Blocks of $r$ bits are transmitted. $X$ denotes the number of inversions during the transmission of a block of $r$ bits. Determine the distribution of $X$, its expectation and its variance.