Fix indents
Fix a comma
Add end