Renamed some variables for clarity and added to the readme