Fix issue with shares not being found in archive

* Used wrong ID field to find shares
* Added debug command line switch, added some output to PPLNS payout

Addresses #143