Fixed indenting, added some comments