Merge of code

I wrote a similar plugin, but without the insert commands (great idea btw), so I though we could merge our code?