Re-ordered examples.
Cleaned up code.
Added collecting examples.