My attempt....
code refactor
Merge pull request #1 from slodge/ChainAndLeafVersion

My attempt....