Some more restructuring. Added an examples directory.