Added better comments and removed some old thingys.