Updated the code

Erased some excess code that was commented out and not used.