First version
updated binomgen's input