Full recode

Everything is working, more efficient. Check out the readme.txt and the
todo.txt for things planned in the (hopefully near) future.