Move requirements to setup.py. Add requirements for example analyses.
Minor code layout.