Added max iterations from command line and updated the readme.