Fix build and setup.py, reorg example and tests