adding GenPOTSummary
overhaul of format and helper functions