cleaned away nans appearing in prettified tables
completed first template