Redo to use hist
Add zip file logic
Ready for markdown
Add template