 							game.quotes = quoteEntities
 						else
 							error = quoteQueryError
-						
+
 						completeCount++
 						if completeCount == results.length
 							done()
-						
+
 				getQuotes game for game in results
-			 
-			else						
+
+			else
 				done()
 	getGame: (game_id, withQuotes, done)=>
 		error = null
 
-		@tableService.retrieveEntity @catalogueTableName, 'zvgq-game', game_id, (error, result, response)=>		
+		@tableService.retrieveEntity @catalogueTableName, 'zvgq-game', game_id, (error, result, response)=>
 			if withQuotes is true and response.body isnt null
 				game = new GameModel response.body
 				quotesRepo = new QuotesRepository @tableService

	# constructor
	constructor: (accountName, accountKey)->
        @catalogueTableName = nconf.get "CATALOGUE_TABLE_NAME"
        
        @tableService = azure.createTableService accountName, accountKey
        @tableService.createTableIfNotExists @catalogueTableName, (error, result, response)->
            if error

				addResult = (sourceEntity)->
					newGame = new GameModel sourceEntity
					results.push newGame

				addResult game for game in entities.entries

			else
				error = gameQueryError

			# Add quotes to games, if requested
			if withQuotes == true and results.length > 0
				quotesRepo = new QuotesRepository @tableService
				completeCount = 0
				getQuotes = (game)->
