Add `background` and `flatten` APIs
Merge pull request #94 from gasi/background-flatten

Add `background` and `flatten` APIs