Generated some rdoc and added some comments for it.
Added rdoc comments to all of the comments, the query analysis controller actions, and some of the view models.