Merge pull request #229 from murrekatt/develop

Moving some stuff into util
Cleanup of some comments.
Rename variable to visitor.
Simplify expression.
Renamed function for clarity as it is the visitor pattern.
Renamed OTAcctFunctor to AccountVisitor.
Renamed AcctFunctor_PayDividend to PayDividendVisitor.