De-rubify this codebase
Add some comments about what this does