Original Version - 15 August 2013 - first commit to github
rearranging