Rewrite all the things, add giant comments!