Code is not documented at all. This is bad. Also need commenting in a format that works for auto-generated docs (yuidoc?).