Close opened files on error
Remove unused variables
Fix mac signature hash table indexing
Merge pull request #37 from madmac2501/master

Two small fixes to prads
Merge pull request #38 from madmac2501/master

Fix mac signature hash table indexing
Mentioned Miguel in the AUTHORS for his patches