multi block append and prepend [closes #733]
added more tests, more accurate code [closes #733]
minor fix [closes #733]
Merge pull request #876 from Se7enSky/master

multi block append and prepend [closes #733]