Restored mean subtraction
Fixed typo in comment