Update readme
Fix gradient calculation and log output (there was an integer underflow)