Bug fixes and minor improvements

* Bug fix for header
* Use zip rather than accessing arrays by index
* Show pairs page after generating