tidyied up part of the code
Merge branch 'master' of https://github.com/rgrannell1/codeR