Added better description to the code and removed commented out code