added support for result queries; added some more comments
added support for ranking and pass2alternative relationship; added
controller unit tests
finished commenting the gro