Restructure index.

Front-load code samples, make explanations easier to read. 'todos.txt'
to offload descriptions or code that may be useful later.

Restructure