Commented a bit and fixed a minor problem.