Fixed percentage dice

Fixed percentage dice
cleaned up and commented code

- default settings not working