Initial calculations and rendering work.  Includes sorting, html & json exports.