Corrections

Corrected and deleted code to make it run better