Fixed a bug in expand-chain and updated README.