changed the name of the file and polished the code and comments