Filled in some comments, added some whitespace