Cleanup in code structure.
- moved tests, examples
- updated examples, tests