Fix template errors.  Template now displays results passed in.

Fixed template errors.  Display now working, optimization and sorting are still needed.