added basic measurement of hashes per second
Fixed indentation.