Fixed a bug and updated the readme file.