Calculating for skew re-rolls if value is beyond bounds.
Fixed bug regarding integer and doubles
Code cleanup