Made chainSize dynamic
Merge pull request #42 from brmendez/brianBranch

Made chainSize dynamic