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