added some insert functions
Merged with master
Merge remote-tracking branch 'gjospin/master'