Pruned code and commented some stuff.