Converted indents to spaces. Also added some comments.