100% suck it. Also added some comments and removed most debug.