Fixing payoff calculations
Fixing some errors
Updates to the libraries