todo list
First serious cleanup and documentation.