fixed some minor bugs in the blend functions
Merge pull request #6 from denniskaselow/upstream

fixed some minor bugs in the blend functions