Add test case to verify nested wrapping
Minor refactoring and documentation
Refactor and document examples
Add travis file