refactor for limit with percentage
wip
tests
wip
fix
Merge pull request #2 from stevepeak/wip

Wip