spaced code out appropriately and added needed whitespace. Also updated comments.