add curtain functionality and refactor examples
Merge pull request #2 from gschammah/feature/bg-curtain

add curtain functionality and refactor examples