Bug fixes, more stats

Fixed memory leak
Fixed problem in thread monitoring (killing thread not always worked)
Add key shortcut to print the current settings for the miner