Deleted commented code and unnecessary print statements