Code dump
A ton of ideas, documentation and fixes. Probably does not work yet.