Fixed the type casting problem for binomial

To do:

Improve the help message