moved some commented code into functions of its own, this will  keep hapening as I
play with more test code files gradually
Merge branch 'master' of https://github.com/kgaipal/test-code