Updated InputForm.cs to clear output before solving