Properly delete arrays (using delete[] instead of just delete)
Remove some commented out code.