Added version control and eliminated useless variables, improved phrasing