Fix setup.py, move examples, make tests into module