Corrects odds calculations and adds tests
Fixes indentation