Formatted and added curly braces { and } according to the best practices for C#. Removed unneeded lines.