fixing coding error and adding a step in readme