Renamed S to X (for the binomial random variable)
Shortened factorial function
added whitespace in nPk function
Added formatting to the outputs
no scientific notation
no unnecessary zeros at the end of numbers
added precision constant.