Smart Buffer Tool Branch

Ok, lets try this again. 

I'm still trying to learn git so not sure if I have this correct, I have made a new branch that is the home of smart buffer tool until it is ready for merging into master branch.

The tool is working however I't is my first attempt at a tool and I need a little sanity check and code review.