I think there are some typos in the Gaussian distribution and the one in matrix form. I have highlighted the corresponding parts of the equations in the image below. The compressed form of the matrix form should be correct.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information