Fix a logical error in dumping variables
Update readme