Fixed some formatting, warnings, and comments.