generate B0 and beta from inp
ready to merge with github
merged with github