updated insertion code
Merge branch 'master' of https://github.com/davidgaskins/dot