Fixed indentation and made nicer comments.