Fixed formatting a little

There were some unneeded line breaks in the code, and I also updated the comments.