Changed variable names and updated README.md