Correcting Code

Nesting
Spelling
Formatting (indents)