Removing useless comment
Refactoring solve() to use more functions
Don't recalculate polarities if solve() called multiple times

Last solution might just work
Oops, small typo, fixing
Fixing mix-up with reduceDB limits and limit resets