Added missing docblocks.
Changed template to display empty result set when not query is being run.