updated code and commented